package cn.sxgan.core.controller;

import cn.sxgan.common.anno.WorkTime;
import cn.sxgan.common.entity.vo.SystemInfoVO;
import cn.sxgan.common.response.Result;
import cn.sxgan.core.controller.api.ISysInfoControllerApi;
import cn.sxgan.core.services.SystemService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description: 系统监控信息
 * @Author: sxgan
 * @Date: 2025-03-18 14:11
 * @Version: 1.0
 **/
@RestController
@Slf4j
@RequestMapping("/sys")
public class SysInfoController implements ISysInfoControllerApi {
    
    @Autowired
    SystemService systemService;
    
    @WorkTime("获取系统基本信息")
    @GetMapping("/findSystemBaseInfo")
    public Result<SystemInfoVO> findSystemBaseInfo() {
        return systemService.findSystemBaseInfo();
    }
}
